package com.doform.android.xianggucheng.bean.request_bean;

import com.doform.android.xianggucheng.help.AppHelp;
import com.google.gson.Gson;

/**
 * 作者 Y_MS
 * Created by ${APEN} on 2017-08-05.
 * GitHub：https://github.com/cxydxpx
 */

public class ReqUpdateInLibrary {

    /**
     * id 	否 	string 	采购入库ID
     * guid 	否 	string 	采购入库GUID
     * whid 	是 	string 	仓库id
     * whname 	是 	string 	仓库name
     * buydate 	是 	string 	采购日期
     * apname 	是 	string 	采购人
     * method 	是 	string 	结算方式
     * state 	是 	string 	｛’状态{-9:已删除的,1:新采购,5:已入库,7:已回款}’｝
     * debug 	是 	string 	开启：true
     */
    private boolean debug = AppHelp.getInstance().Debug;
    private String state;
    private String _savetype = "update";
    private String id;
    private String guid;
    private String whid;
    private String whname;
    private String buydate;
    private String apname;
    private String method;
    private String remark;

    public ReqUpdateInLibrary(String mId,String guid, String mLibraryId, String mLibraryName, String mClearTypeId,
                               String mTime, String mPerson, String mRemark,String state) {
        this.id = mId;
        this.guid = guid;
        this.whid = mLibraryId;
        this.whname = mLibraryName;
        this.method = mClearTypeId;
        this.buydate = mTime;
        this.apname = mPerson;
        this.state = state;
        this.remark = mRemark;
    }

    @Override
    public String toString() {
        return new Gson().toJson(this);
    }
}
